<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <title>待评价</title>
    <link rel="icon" href="assets/img/favicon.ico">

    <link rel="stylesheet" type="text/css" href="/css/webbase.css" />
    <link rel="stylesheet" type="text/css" href="/css/pages-seckillOrder.css" />

    <script type="text/javascript" src="/js/plugins/jquery/jquery.min.js"></script>
    <script type="text/javascript" src="/js/plugins/jquery.easing/jquery.easing.min.js"></script>
    <script type="text/javascript" src="/js/plugins/sui/sui.min.js"></script>
    <script type="text/javascript" src="/js/widget/nav.js"></script>

    <script>
       function sendEmail() {
         var email=$("#email").val();
         $.ajax({
             url:"/user/sendEmail",
             type:"post",
             dataType:"json",
             data:{email:email},
             success:function () {
                 alert("发送邮箱成功")
             },
             error:function () {
                alert("发送邮箱失败")
             }
         })
       }

       function submitCode() {
           var email=$("#email").val();
           var code=$("#code").val();
           location.href="/user/submitCode?email="+email+"&code="+code;
       }
    </script>
</head>
<body>
邮箱:<input type="text" id="email" placeholder="输入邮箱">
<button onclick="sendEmail()">发送验证码</button><br>
验证码:<input type="text" id="code" placeholder="输入验证码">
<button onclick="submitCode()">提交信息</button>
</body>
</html>